/**
 * Created by H-209-FX-XY on 2018/3/22.
 */
public class Hello implements HelloMBean {

    private String name;
    private String age;
    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getAge() {
        return age;
    }

    @Override
    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public void helloWorld() {
        System.out.println("hello world!");
    }

    @Override
    public void helloWorld(String str) {
        System.out.println("hello world : " + str);
    }

    @Override
    public void getTelephone() {
        System.out.println("getTelephone!");
    }

    @Override
    public void print() {
        System.out.println(this.toString());
    }

    @Override
    public String toString() {
        return "Hello{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
